<?php
namespace app\index\controller;

use app\admin\model\News;

class NewsController extends CommonController
{
    //1.新闻页面
    public function news()
    {
        //1.取出轮播图
        $data = (new News())->order('sort_order desc')->select();
        $this->assign('data', $data);

        return $this->fetch();
    }

}
